using UnityEngine;

public class PoolTestLine : MonoBehaviour
{
    public Transform poolTarget;
    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.layer == LayerMask.NameToLayer("Bubble"))
        {
            LevelManager.I.PassLevel();
            Bubble.I.poolTarget = poolTarget;
            Destroy(gameObject);
        }
    }
}
